<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width initial-scale=1.0">
	<meta name="renderer" content="webkit">
	<title>DSL WMS培训 CMD</title>
	<link rel="stylesheet" type="text/css" href="/static/css/vendor/bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" href="/static/css/font-awesome.min.css">
	<link rel="stylesheet" type="text/css" href="/static/css/flat-ui.css">
	<link rel="stylesheet" type="text/css" href="/static/css/admin.css">
	<link rel="shortcut icon" href="/static/img/dslIcon.png">
</head>
<body>
	<div class="container-fluid">
		<nav class="navbar navbar-inverse navbar-embossed row" role="navigation">
		  <div class="navbar-header">
		    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-01">
		      <span class="sr-only">Toggle navigation</span>
		    </button>
		    <a class="navbar-brand" href="#">DSL WMS CMD</a>
		  </div>
		  <div class="collapse navbar-collapse" id="navbar-collapse-01">
			<ul class="nav navbar-nav">
			    <li class="logout"><a href="#">安全退出</a>
			    </li>
			  </ul>		    
		   <!--  <form class="navbar-form navbar-right" action="#" role="search">
		      <div class="form-group">
		        <div class="input-group">
		          <input class="form-control" id="navbarInput-01" type="search" placeholder="Search">
		          <span class="input-group-btn">
		            <button type="submit" class="btn"><span class="fui-search"></span></button>
		          </span>
		        </div>
		      </div>
		    </form> -->
		  </div><!-- /.navbar-collapse -->
		</nav><!-- /navbar -->
		
		<div class="row">
		<section class="col-md-2">
			<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
			<img src="/static/img/dslcdm.png" alt="DSL WMS CMD" class="img-thumbnail">	
				{volist name="modules" id="module"}
				<div class="panel panel-default">
			    <div class="panel-heading" role="tab" id="headingOne">
			      <h4 class="panel-title">
			        <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse{$module.id}" aria-expanded="true" aria-controls="collapseOne">
			         <span class="icon-cogs"></span>&nbsp;&nbsp;&nbsp;&nbsp;{$module.module}
			        </a>
			      </h4>
			    </div>
			    <div id="collapse{$module.id}" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne" aria-expanded="true">
			       <ul class="list-group">
			     	{volist name="module.submodules" id="submodule"}
			       	<li class="list-group-item" data-id="{$submodule.data_id}" data-url="{$submodule.url}"><a href="#">{$submodule.submodule}</a></li>
			       	{/volist}
			       </ul>
			    </div>
			  </div>
			{/volist}
			</div>			
		</section>
		
		<section class="col-md-9 well index_header">
			<div>
				<ul class="nav nav-tabs" role="tablist">
				    <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">首页&nbsp;&nbsp;&nbsp;</a></il>
				  </ul>				
			</div>
		</section>

		<section class="col-md-9 well well-lg index_main">
			<div class="tab-content">
			    <div role="tabpanel" class="tab-pane active" id="home">
			    	<!-- #include file = "login.html"  -->
			    </div>
			</div>
		</section>
	</div>
	</div>
	<footer>
	<script type="text/javascript" src="/static/js/vendor/jquery.min.js"></script>
	<script type="text/javascript" src="/static/js/bootstrap.js"></script>
	<script type="text/javascript" src="/static/js/flat-ui.js"></script>
	<script type="text/javascript" src="/static/js/admin_main.js"></script>
	<script type="text/javascript">
		$.ajaxSetup({
		 cache: false
		});
		$(function(){
		  setInterval(function() {
		    loginLosetime();
		 }, 7200000);//设置2小时自动执行 loginLosetime 函数（时间可自行调整）
		});
		// 登录超时检测
		function loginLosetime(){
		  $.ajax({
		    url:'{$login_view}',
		    type:'GET', //GET
		    async:true,    //或false,是否异步
		    data:{
		        
		    },
		    timeout:5000,    //超时时间
		    dataType:'json',    //返回的数据格式：json/xml/html/script/jsonp/text
		    
		    success:function(data,textStatus,jqXHR){
		        if (data.err == '1') {
		        	alert(data.content);
		        	window.location.href = data.url;
		        }
		        if (data.err == '0') {
		        }

		        
		    },
		    error:function(xhr,textStatus){
		        console.log('网络出错');
		        
		    },
		    
		})
		}
	</script>
	
	</footer>
</body>
</html>